<?php
// +----------------------------------------------------------------------
// | 车钉钉 [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.twothink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: YagamiZN
// +----------------------------------------------------------------------
namespace app\home\controller;
use think\Controller;

/**
 * 前台公共控制器
 */
class Home extends Controller {
    protected $baseWebMsg;
    protected $baseMenu;
    /**
     * 构造方法
     */
	public function __construct(){
        /* 读取站点配置 */
        parent::__construct();
	}
	/**
	 * 构造方法，初始化站点信息
	 */
    protected function _initialize(){
        /* if(!config('web_site_close')){
            $this->error('站点已经关闭，请稍后访问~');
        } */
    }
    /**
     * 获取验证码      1推荐注册 2扫码注册 3修改登陆密码 4修改支付密码 5修改绑定手机 6设置支付密码
     */
    public function getVcode(){
        $type=input('param.type');
        $tel=input('param.telephone');
        if(empty($type)||empty($tel)){
            $res=['code'=>300,'msg'=>'参数错误'];
            return $res;
        }
        exit();
        $isSms=$this->Login_model->get_telephone_vcode($type,$tel);
    }
	/* 空操作，用于输出404页面 */
	public function _empty(){
		$this->redirect('Index/index');
	}
}
